﻿var status = 0;
var z = "#fUI/UIWindow/Quest/icon5/1#";//"+z+"//美化
var typed = 0;
function start() {
    status = -1;
    action(1, 0, 0);
}

function action(mode, type, selection) {
    if (status == 0 && mode == 0) {
        cm.dispose();
        return;
    }
    if (mode == 1) {
        status++;
    } else {
        status--;
    }
    if (status == 0) {
        var selStr = "#e亲爱的 #g#h0##k, 欢迎来到 #r糖糖冒险岛萌新指引系统#k\r\n\r\n";
		selStr += "#b以下是RMB玩家可供选择的服务#k\r\n那么请您选择您所需要的服务：\r\n";
		selStr += "        "+"#L1#>>#r如何快速升级#k<<#l\r\n";
		selStr += "        "+"#L2#>>#d如何提高面板#k<<#l\r\n";
		selStr += "       "+"#L3#>>#g如何赚钱、获取魔方#k<<#l\r\n";
		selStr += "    "+"#L4#>>#b如何花费余额使得利益最大化#k<<#l\r\n";
        cm.sendSimple(selStr);
    } else if (status == 1) {
        switch (selection) {
		case 1:
        cm.dispose();      
	cm.openNpc(9310378, "kuaisushengji");
            break;
		case 2:     
        cm.dispose();      
	cm.openNpc(9310378, "tigaomianban");
            break;
		case 3:
	cm.sendOk("GM还在玩命儿完善中，请相信我们！");
        cm.dispose();
            break;
		case 4:
	cm.sendOk("GM还在玩命儿完善中，请相信我们！");
        cm.dispose();
            break;

        }
    } 
}